<include file="Public:pagerForm" />
<tagLib name="html" />
<!-- 主页面开始 -->
<script>
	function addcart(strSection){
			var i;
			var ids='';
			var	colInputs = document.getElementById(strSection).getElementsByTagName("input");
			for	(i=1; i < colInputs.length; i++)
			{
				//colInputs[i].checked=colInputs[0].checked;
				if(colInputs[i].checked==true){
					//alert(colInputs[i].value);
					if(ids==''){
						ids=colInputs[i].value;
					}else {
						ids=ids+'_'+colInputs[i].value;
					}
				}
			}
			//alert(ids);
			//下面使用thinkajax
			//ajax提交待后台最后做先使用window.open 替代
			if(ids!=''){
				window.open('__URL__/add_cart/ids/'+ids);
			}else{
				alert('请先勾选要添加操作的产品');
			}
	}
	
		function view(id){
	window.location.href='__URL__/view/id/'+id;
}
</script>
<!-- 主体内容  -->
<!--  功能操作区域  -->
<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:auto;">
				库存操作：<a href="__URL__/purchase" target="navTab">采购入库</a> | <a href="__URL__/stockin" target="navTab">其他入库</a> | <a href="__URL__/stockout" target="navTab">总库出库</a> | <a href="__URL__/reallocate" target="navTab">总库调拨</a> | <a href="__URL__/reallocatein" target="navTab">调拨入库</a> | <a href="__URL__/depot" target="navTab">入库退货</a> | <a href="__URL__/reportloss" target="navTab">库存报损</a> | <a href="__URL__/check" target="navTab">库存盘点</a> | <a href="__URL__/export" target="navTab">导出所有库存信息</a>
			</li>
		</ul>
		<form action="" method="post" onsubmit="return navTabSearch(this);" >
		<ul class="searchContent">
			<li style="width:auto;">
				选择仓库：
				<select onchange="changestore()">
				  <option value="0">所有仓库</option>
				  <option value="1">总库</option>
				  <option value="2">南翔店</option>
				  <option value="3">浦东店</option>
				</select>
			</li>
			<li style="margin-left:50px;"><button type="submit">检索</button></li>
		</ul>
		
		</form>
		
	</div>
</div>
<!-- 功能操作区域结束 -->
<div class="pageContent j-resizeGrid">

<div class="panelBar">
		<ul class="toolBar">
			<li class=""><a rel="add" height="490" width="700" target="dialog" href="/Admin/PlateContent/add/" class="add"><span>添加</span></a></li>
			<li class=""><a title="确定要删除吗?" target="ajaxTodo" href="/Admin/PlateContent/delete/?id={adpos}" class="delete"><span>删除</span></a></li>
			<li><a rel="edit" height="490" width="700" target="dialog" href="/Admin/PlateContent/edit/?id={adpos}" class="edit"><span>修改</span></a></li>
		</ul>
	</div>
	

	
<div class="grid">
	<html:list id="checkList" style="table" name="action" checkbox="true" action="true" datasource="list" show="id:序号|50,product_code:产品编号|50,product_name:产品名称|80,store|get_store_name:所属仓库|80,stockin:进货数量|80,stockout:出库数量|50,sale:销售数量|50,loss:报损数量|50,reallocate:调拨数量|80,depot:返厂数量|80,return:退货数量|80,real:实盘数量|80,stock:当前库存|80" actionlist="dwzActionWidth:200,view:产品详情:goodsid:dwzOpenWh|300-500" /> 
</div>
	<!--  分页显示区域 -->
	<div class="panelBar">
		<div class="pagination">{$page}</div>
	</div>
	<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
<!-- 主页面结束 -->